package com.food.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-07-03
 */
@Getter
@Setter
@ToString
@TableName("food_favorite")
public class FoodFavorite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID，主键
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Integer favoriteId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 美食ID
     */
    @TableField("food_id")
    private Integer foodId;

    /**
     * 收藏时间
     */
    @TableField("created_at")
    private Date createdAt;
}
